GDK/Win32: Try to fix initializing GLES contexts
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 17 Jan 2022 08:11:27 +0000 (16:11 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 19 Jan 2022 03:56:32 +0000 (11:56 +0800)
commit598c7d9cf4f1771cf0888d0b275652115c2cc806
tree80c8c853ac800eeb56432f9b5361722540d49073
parent3e9d858af191bbfaec06bd71b44726031dc0d0cc
GDK/Win32: Try to fix initializing GLES contexts

We are now able to create EGL contexts properly on Windows, but not GLES.  This
tries to fix things by doing the following:

*  Record the GL context type in a more proper fashion, using an Enum.  This
   makes things a bit cleaner.
*  Force GLES-3.0+ contexts, since libANGLE requires this to properly work with
   the shaders-its 2.0 contexts don't work well with our shaders.
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkdisplay-win32.h
gdk/win32/gdkglcontext-win32-wgl.c